﻿

namespace SpiderCore.Visited
{
   public interface IVisited
   {
       /// <summary>
       /// 已访问数量
       /// </summary>
       int GetCount();

       /// <summary>
       /// 将Url添加到Hashish
       /// </summary>
       /// <param name="url"></param>
       /// <param name="data"></param>
       void AddUrl(string url, VisitedData data);

       /// <summary>
       /// 判断url是否已经存在于Hashish
       /// </summary>
       /// <param name="url"></param>

       bool ContainUrl(string url);

       /// <summary>
       /// 从Hashish中获取Url数据
       /// </summary>
       /// <param name="url"></param>
       VisitedData GetUrl(string url);

       /// <summary>
       /// 从Hashish中移除Url数据
       /// </summary>
       /// <param name="url"></param>
       void RemoveUrl(string url);

   }
}
